
export const infoUrl = 'http://47.101.180.252:8080/wisdom-classrome/sys/user/info'
export const wxLogin = 'http://47.101.180.252:8080/wisdom-classrome/teacher/login'
import * as user from './modules/user.js';
const http = uni.$u.http;


// api 接口管理
const install = (Vue, vm) => {
	Vue.prototype.$api  = {
		getInfo: (params = {}) => http.get(infoUrl, params),
		login: (params = {}) => http.post(wxLogin, params),
		user
	};
}


export default {
	install
}
